<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.jxLC.Action.*"%>
<%@ page language="java" import="com.jxLC.Model.*" %>
<%@ page language="java" import="com.jxLC.Service.*" %>
<%@ page language="java" import="com.jxLC.util.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
AdminService adminService=new AdminService();
%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>:::江西低碳网:::</title>
	<link href="/mycss/my.css"  rel="stylesheet" type="text/css" />
	<link href="/mycss/details.css"  rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/myjs/my.js"></script>
    <style type="text/css">
    #mk{margin-top:10px;margin-bottom:10px;}
    table{background-color:#FFFFFF;border:1px dashed black;width:900px;}
    #ann{padding-left:110px;padding-right:80px;font-size: 14px; }
	body{ text-align:center; }
    </style>
  </head>
  
 <body style="background-color:#EBFCF3">
   <s:include value="/admin/header.jsp"></s:include>
	<center><div id="middle" style="background-color: white">
	<div id="mk" align="center"> 
	     <table>
	     <tr>
	     <td>
	              <%
		             Content content=(Content)request.getAttribute("info");
	                 Admin a=adminService.getadmin(content.getCNum());
			      %>
			                <div id="m1"><h3><%=content.getCContent_topic()%></h3></div>
			                <div id="m4"><font style="font-size:14px;color:red">作者：<%=content.getCauthor() %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			               														 来源：<%=content.getCresource() %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                                                                                                                                                                                     发布时间： <%=content.getCContent_time() %></font></div>
			                <div id="m2"></div>
			                <div id="m3"><font style="font-size:15px;"><%=content.getCContent_text() %></font></div>
			                <div id="m5"></div>
			                
			                <%
		                 	if(content.getAnnex() != null && content.getAnnex().length() > 0){
		                 	%>
		                 	<div id="m7">附件：</div>
		                 	<%
		                 		DealAnnex dann= new DealAnnex();
		                 		List<Annex> list = dann.getAnnex(content.getAnnex());
		                 		for(int i=0;i<list.size();i++ ){
		                 			Annex ann = list.get(i);
		                 			%>
		                 			<div id="ann"><a href="<%=ann.getNewFile() %>"><%=ann.getOldFileName() %></a></div>
		                 			<%
		                 		}
		                 	}
					  		%>
		 </td> 
		 </tr>
	   </table>
	   </div>
	</div></center>
	<s:include value="/admin/tail.jsp"></s:include>
</body>
</html>
